package org.trendit

class Tag {

  String name 
  User user
  Tag(String n,User u){
	  name = n
	  user = u
  }
  static constraints = { 
	   name(blank: false)
  }
  static hasMany = [ posts : Post ] 
  static belongsTo = [ User, Post ]
  String toString() {
	  "Tag name ${name} (${id})"
	  }
}
